
face = {15:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1|2'
        ,'codepos':3,'codenum':1,'codeonly':0,'codenum2':0},
    19:{'no':'0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//直选和值
    21:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组三'},//组三复式
    23:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':3,'codeonly':0,'codenum2':0,title:'组六'},//组六复式
    25:{'no':'1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//组三和值
    28:{'no':'3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//组三和值
    7:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    11:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组选'},
    9:{'no':'0|1|2|3|4|5|6|7|8|9','place':'1|2','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    13:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组选'},
    1:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1|2','codepos':1,'codenum':-1,'codeonly':0,'codenum2':0},
    33:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'一码'},
    35:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'二码'},
    29:{'no':'大|小|单|双','place':'0|1','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    31:{'no':'大|小|单|双','place':'1|2','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    //体彩
    16:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1|2'
        ,'codepos':3,'codenum':1,'codeonly':0,'codenum2':0},
    20:{'no':'0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//直选和值
    22:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组三'},//组三复式
    24:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':3,'codeonly':0,'codenum2':0,title:'组六'},//组六复式
    27:{'no':'1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//组三和值
    26:{'no':'3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//组三和值
    8:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    12:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组选'},
    10:{'no':'0|1|2|3|4|5|6|7|8|9','place':'1|2','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    14:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组选'},
    2:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1|2','codepos':1,'codenum':-1,'codeonly':0,'codenum2':0},
    34:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'一码'},
    36:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'二码'},
    30:{'no':'大|小|单|双','place':'0|1','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    32:{'no':'大|小|单|双','place':'1|2','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    //时时乐
    233:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1|2'
        ,'codepos':3,'codenum':1,'codeonly':0,'codenum2':0},
    235:{'no':'0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//直选和值
    236:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组三'},//组三复式
    237:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':3,'codeonly':0,'codenum2':0,title:'组六'},//组六复式
    238:{'no':'1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//组三和值
    239:{'no':'3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24',
        'place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'和值'},//组三和值
    229:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    231:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组选'},
    230:{'no':'0|1|2|3|4|5|6|7|8|9','place':'1|2','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    232:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'组选'},
    228:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0|1|2','codepos':1,'codenum':-1,'codeonly':0,'codenum2':0},
    242:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':1,'codeonly':0,'codenum2':0,title:'一码'},
    243:{'no':'0|1|2|3|4|5|6|7|8|9','place':'0','codepos':1,'codenum':2,'codeonly':0,'codenum2':0,title:'二码'},
    240:{'no':'大|小|单|双','place':'0|1','codepos':2,'codenum':1,'codeonly':0,'codenum2':0},
    241:{'no':'大|小|单|双','place':'1|2','codepos':2,'codenum':1,'codeonly':0,'codenum2':0}
};
faces3 = face;

//福彩、体彩、时时乐玩法一样
tcToFcSpid = {2:1,8:7,10:9,12:11,14:13,16:15,20:19,22:21,24:23,27:25,26:28,30:29,32:31,34:33,36:35};
sslToFcSpid = {228:1,229:7,230:9,231:11,232:13,233:15,235:19,236:21,237:23,238:25,239:28,240:29,241:31,242:33,243:35};

fcToTcSpid = {1:2,7:8,9:10,11:12,13:14,15:16,19:20,21:22,23:24,25:27,28:26,29:30,31:32,33:34,35:36};
fcToSslSpid = {1:228,7:229,9:230,11:231,13:232,15:233,19:235,21:236,23:237,25:238,28:239,29:240,31:241,33:242,35:243};

//和值玩法注数
hzBetCount = new Array();
//hzBetCount[19] = {0: 1, 1: 3, 2: 6, 3: 10, 4: 15, 5: 21, 6: 28, 7: 36, 8: 45, 9: 55, 10: 63, 11: 69
// , 12: 73, 13: 75, 14: 75, 15: 73, 16: 69, 17: 63, 18: 55, 19: 45, 20: 36, 21: 28, 22: 21, 23: 15
// , 24: 10, 25: 6, 26: 3, 27: 1};
hzBetCount[19] = {0:{0:0,1:1},1:{0:1,1:3},2:{0:2,1:6},3:{0:3,1:10},4:{0:4,1:15},5:{0:5,1:21}
    ,6:{0:6,1:28},7:{0:7,1:36},8:{0:8,1:45},9:{0:9,1:55},10:{0:10,1:63},11:{0:11,1:69}
    ,12:{0:12,1:73},13:{0:13,1:75},14:{0:14,1:75},15:{0:15,1:73},16:{0:16,1:69},17:{0:17,1:63}
    ,18:{0:18,1:55},19:{0:19,1:45},20:{0:20,1:36},21:{0:21,1:28},22:{0:22,1:21},23:{0:23,1:15}
    ,24:{0:24,1:10},25:{0:25,1:6},26:{0:26,1:3},27:{0:27,1:1}};
//hzBetCount[25] = {1: 1, 2: 2, 3: 1, 4: 3, 5: 3, 6: 3, 7: 4, 8: 5, 9: 4, 10: 5, 11: 5, 12: 4
// , 13: 5, 14: 5, 15: 4, 16: 5, 17: 5, 18: 4, 19: 5, 20: 4, 21: 3, 22: 3, 23: 3, 24: 1, 25: 2
// , 26: 1};
hzBetCount[25] = {0:{0:1,1:1},1:{0:2,1:3},2:{0:3,1:1},3:{0:4,1:3},4:{0:5,1:3}
    ,5:{0:6,1:3},6:{0:7,1:4},7:{0:8,1:5},8:{0:9,1:4},9:{0:10,1:5},10:{0:11,1:5}
    ,11:{0:12,1:4},12:{0:13,1:5},13:{0:14,1:5},14:{0:15,1:4},15:{0:16,1:5},16:{0:17,1:5}
    ,17:{0:18,1:4},18:{0:19,1:5},19:{0:20,1:4},20:{0:21,1:3},21:{0:22,1:3},22:{0:23,1:3}
    ,23:{0:24,1:1},24:{0:25,1:2},25:{0:26,1:1}};
//hzBetCount[28] = {3: 1, 4: 1, 5: 2, 6: 3, 7: 4, 8: 5, 9: 7, 10: 8, 11: 9, 12: 10, 13: 10
// , 14: 10, 15: 10, 16: 9, 17: 8, 18: 7, 19: 5, 20: 4, 21: 3, 22: 2, 23: 1, 24: 1};
hzBetCount[28] = {0:{0:3,1:1},1:{0:4,1:1},2:{0:5,1:2},3:{0:6,1:3},4:{0:7,1:4}
    ,5:{0:8,1:5},6:{0:9,1:7},7:{0:10,1:8},8:{0:11,1:9},9:{0:12,1:10},10:{0:13,1:10}
    ,11:{0:14,1:10},12:{0:15,1:10},13:{0:16,1:9},14:{0:17,1:8},15:{0:18,1:7},16:{0:19,1:5}
    ,17:{0:20,1:4},18:{0:21,1:3},19:{0:22,1:2},20:{0:23,1:1},21:{0:24,1:1}};